Results 1 to 8 of 8

Thread: Mefy's Gametypes Maplist

  1. #1

    Default Mefy's Gametypes Maplist

    Hi all,

    I've read Mefy's readme extensively but just cannot seem to get my maplists working right with my botserver. Any help, as always would be greatly appreciated?..

    Now, the below works fine. But I want to add more than the standard 15 maps to the rotation.
    ---------------------------------------------------------------------------------------
    Code:
    // Map Rotation List
    set g_extgametype_mohdm1 tdm
    set g_extgametype_mohdm2 tdm
    set g_extgametype_mohdm3 tdm
    set g_extgametype_mohdm4 tdm
    set g_extgametype_mohdm5 tdm
    set g_extgametype_mohdm6 tdm
    set g_extgametype_mohdm7 tdm
    set g_extgametype_obj_team1 obj
    set g_extgametype_obj_team2 obj
    set g_extgametype_obj_team3 obj
    set g_extgametype_obj_team4 obj
    set g_extgametype_parabot_obj_ste-mere-eglise
    set g_extgametype_obj_merville obj
    set g_extgametype_obj_stanalie obj
    set g_extgametype_obj_canal obj
    
    set g_gametype 4
    set g_extgametype ""
    
    set sv_maplist "obj/obj_team1 dm/mohdm1 obj/obj_team2 dm/mohdm2 dm/mohdm7 obj/obj_team3 dm/mohdm3 dm/mohdm4 obj/obj_team4 dm/mohdm5 dm/mohdm6 obj/parabot_obj_ste-mere-eglise obj/obj_merville obj/obj_stanalie obj/canal"
    
    // Map
    // Starting map on the rotation. Kicks the server into gear
    map "obj/obj_team1"
    ----------------------------------------------------------------------------------

    So to add more maps, Ive tried a few configurations, namely this variant of Mefy's templates...but it still doesn't work. Map list does not prepare, and the starting map just loops on victory. As below:


    Code:
    // Map Rotation List
    set g_extgametype_mohdm1 tdm
    set g_extgametype_mohdm2 tdm
    set g_extgametype_mohdm3 tdm
    set g_extgametype_mohdm4 tdm
    set g_extgametype_mohdm5 tdm
    set g_extgametype_mohdm6 tdm
    set g_extgametype_mohdm7 tdm
    set g_extgametype_obj_team1 obj
    set g_extgametype_obj_team2 obj
    set g_extgametype_obj_team3 obj
    set g_extgametype_obj_team4 obj
    set g_extgametype_parabot_obj_ste-mere-eglise obj
    set g_extgametype_obj_merville obj
    set g_extgametype_obj_stanalie obj
    set g_extgametype_obj_canal obj
    set g_extgametype_vsuk-abbeybeta obj
    set g_extgametype_bastogne obj
    set g_extgametype_parabot_bobobjaa01 obj
    set g_extgametype_parabot_bobobjaa02 obj
    set g_extgametype_ChocolateFactory obj
    set g_extgametype_The_Lost_Village obj
    set g_extgametype_bob_carentan obj
    set g_extgametype_navarone obj
    
    // gametype set
    set g_gametype 4
    set g_extgametype obj
    
    set sv_extmaplist "obj/obj_team1,obj dm/mohdm1 obj/obj_team2 dm/mohdm2 dm/mohdm7 obj/obj_team3 dm/mohdm3 dm/mohdm4 obj/obj_team4 dm/mohdm5 dm/mohdm6 obj/parabot_obj_ste-mere-eglise obj/obj_merville obj/obj_stanalie obj/obj_canal obj/vsuk-abbeybeta obj/bastogne &"
    
    set sv_extmaplist1 "obj/parabot_bobobjaa01,obj obj/parabot_bobobjaa02 obj/ChocolateFactory obj/The_Lost_Village obj/bob_carentan obj/navarone"
    
    // Map
    // Starting map on the rotation. Kicks the server into gear
    map "obj/obj_team1"
    Any ideas where I could be going wrong with this second one or a more efficient way of doing this?
    I am aiming for a mixture of just tdm/obj as you can see. Thanks again to this community for all your help
    Last edited by OhGaz; April 19th, 2015 at 07:11 PM.

  2. #2
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,259

    Default

    Have you made sure all the bot maps have the mefy mod part in them? they need that part to make the extmaplist work.

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  3. #3

    Default

    Hmm. good point. I presume I'd need to edit the map's .scr file and add the extmaplist aspects? Thanks. Will check.

    Also, is that the only way to get more than 15 maps cycling? (My first version above worked flawlessly, so was hoping to just keep adding maps to that, but of course it broke after 15).....

    Many thanks.

  4. #4

    Default

    Edit the .scr for the map you're trying to make work with the extended gametypes, OBJ maps will have this script directly under the "main" thread:

    switch (waitthread global/libmef/util.scr::get_gametype)
    	{
    		case "ctf":
    		case "ftctf":
    		case "dem":
    		case "ftdem":
    			waitthread setup_bases
    			break
    
    		case "obj":
    		case "ftobj":
    			thread objectivethread
    			break
    	}
    
    // set the parameters for this round based match
    	if (level.mef_gametype != "ftobj")
    	{
    		level.dmrespawning = 0 // 1 or 0
    	}


    And DM maps will have this script directly under the "main" thread,

    switch (waitthread global/libmef/util.scr::get_gametype)
    	{
    		case "ctf":
    		case "ftctf":
    		case "dem":
    		case "ftdem":
    			waitthread global/libmef/spawn.scr::spawnblock_begin
    			waitthread setup_bases
    			break
    
    		case "ft":
    		case "rbm":
    			waitthread global/libmef/spawn.scr::spawnblock_begin
    			break
    	}


    As for the maplist not working after you added fifteen maps, I remember when we were setting our custom map server up we had to set the configs up differently (this was like five years ago and I haven't touched them since so there may be a better way to do this) - I think it had something to do with the max character string of the maplist cvar being exceeded is why we did it. Again, this was a while ago so I could be wrong as to why we had to set them up like this but here's how it looks in most of our configs:

    // ***************************************************************
    //
    // BRATS Custom Map Pack 12 Configuration File
    // Updated 16.12.2010 - [SPLATTERGUTS]
    //
    // ***************************************************************
    
    // Grab our base file...
    exec BRATS_CustomsServer.cfg
    
    // Set the game type for the first map in this rotation
    set g_gametype 3
    
    // Map rotation for the server
    set map1 "dm/aa"
    set map3 "dm/arnhem"
    set map4 "dm/anzew_assault"
    set map5 "dm/belgas74"
    set map6 "dm/bombedvillage"
    set map7 "dm/deadend"
    set map8 "dm/dm_FallenVillage"
    set map9 "dm/dm_Island_assault"
    set map10 "dm/dm_maromg"
    set map12 "dm/dmleville"
    set map13 "dm/dmworldcup"
    set map14 "dm/dmxfire2v2"
    set map15 "dm/hitlersfarm"
    set map16 "dm/lab5f"
    set map17 "dm/normandybridge_v1"
    set map19 "dm/riversidedm2"
    set map20 "dm/stpaul"
    set map21 "dm/thefacilitydm"
    set map22 "dm/trench"
    set map23 "dm/walkinthepark"
    set map24 "obj/objenigma"
    
    set sv_maplist "$map1 $map3 $map4 $map5 $map6 $map7 $map8 $map9 $map10 $map12 $map13 $map14 $map15 $map16 $map17 $map19 $map20 $map21 $map22 $map23 $map24"
    
    // Starting map
    map dm/aa


    Basically you define all the maps as a variable, then call those in the maplist, only takes five characters instead of 9 + characters, so if it is an issue with hitting a character limit for the string then you'll be able to cram more stuff in there.


    Also found an error in your config that is probably causing you some of the issues you've mentioned--

    set sv_extmaplist "obj/obj_team1,obj dm/mohdm1 obj/obj_team2 dm/mohdm2 dm/mohdm7 obj/obj_team3 dm/mohdm3 dm/mohdm4 obj/obj_team4 dm/mohdm5 dm/mohdm6 obj/parabot_obj_ste-mere-eglise obj/obj_merville obj/obj_stanalie obj/obj_canal obj/vsuk-abbeybeta obj/bastogne &"


    The ,obj after obj/obj_team1 loaded is being applied to all of the maps that come after it since you have not defined another extended gametype for them. If you are going to define the extended gametypes above how you have done with

    // Map Rotation List
    set g_extgametype_mohdm1 tdm
    set g_extgametype_mohdm2 tdm
    set g_extgametype_mohdm3 tdm
    set g_extgametype_mohdm4 tdm
    set g_extgametype_mohdm5 tdm
    set g_extgametype_mohdm6 tdm
    set g_extgametype_mohdm7 tdm
    set g_extgametype_obj_team1 obj
    set g_extgametype_obj_team2 obj
    set g_extgametype_obj_team3 obj
    set g_extgametype_obj_team4 obj
    set g_extgametype_parabot_obj_ste-mere-eglise
    set g_extgametype_obj_merville obj
    set g_extgametype_obj_stanalie obj
    set g_extgametype_obj_canal obj


    Then you don't need to have them set again in the extmaplist, you can remove the set sv_extmaplist from your config. Might try giving that a go to fix that issue with them not loading up properly.
    Last edited by [cB]SplatterGuts; April 19th, 2015 at 08:39 PM.

  5. #5

    Default

    Splendid! Thanks for sharing, Splatterguts. I'll play around with it tonight with that recommendation.

    Appreciate everyone's help. Glad there's still a community around for MOHAA-lovin. Cheers!

  6. #6

    Default

    Ok, so gave that a whirl, and server crashed. I am running 1.11 at the moment, mind you. Any ideas? Thanks again....

    --------------------------------------------------------------------
    End of crash Log:

    Code:
    Forward velocity: 211.386
    LOCALIZATION ERROR: 'Axis win!' does not have a localization entry
    g_maxintermission->value = 15.00   (level.time - level.intermissiontime) = 0.00
    SV_GameMap($map1)
    ------ Server Initialization ------
    Server: $map1
    ==== ShutdownGame ====
    LoadLibrary (main/gamex86.dll)
    ==== InitGame ====
    sizeof(Actor) == 2960
    Magic sizeof actor numer: 2896
    
    ------------------
    Event system initialized: 154 classes 1303 events 802648 total memory in response list
    
    ==== CleanupGame ====
    CM_LoadMap( maps/.bsp, 0 )
    ********************
    ERROR: Couldn't load maps/.bsp
    ********************
    ----- Server Shutdown -----
    ==== ShutdownGame ====
    ---------------------------
    ---------------------------------------------------------------------
    My new rotation list:

    Code:
    // Map Rotation List
    set g_extgametype_mohdm1 tdm
    set g_extgametype_mohdm2 tdm
    set g_extgametype_mohdm3 tdm
    set g_extgametype_mohdm4 tdm
    set g_extgametype_mohdm5 tdm
    set g_extgametype_mohdm6 tdm
    set g_extgametype_mohdm7 tdm
    set g_extgametype_obj_team1 obj
    set g_extgametype_obj_team2 obj
    set g_extgametype_obj_team3 obj
    set g_extgametype_obj_team4 obj
    set g_extgametype_parabot_obj_ste-mere-eglise
    set g_extgametype_obj_merville obj
    set g_extgametype_obj_stanalie obj
    set g_extgametype_obj_canal obj
    set g_extgametype_vsuk-abbeybeta obj
    set g_extgametype_bastogne obj
    set g_extgametype_parabot_bobobjaa01 obj
    set g_extgametype_parabot_bobobjaa02 obj
    set g_extgametype_ChocolateFactory obj
    set g_extgametype_The_Lost_Village obj
    set g_extgametype_bob_carentan obj
    set g_extgametype_navarone obj
    
    set map1 "obj/obj_team1"
    set map2 "dm/mohdm1"
    set map3 "obj/obj_team2"
    set map4 "dm/mohdm2"
    set map5 "dm/mohdm7"
    set map6 "obj/obj_team3"
    set map7 "dm/mohdm3"
    set map8 "dm/mohdm4"
    set map9 "obj/obj_team4"
    set map10 "dm/mohdm5"
    set map11 "dm/mohdm6"
    
    set sv_maplist "$map1 $map2 $map3 $map4 $map5 $map6 $map7 $map8 $map9 $map10 $map11"
    
    set g_gametype 4
    set g_extgametype ""
    
    // Map
    // Starting map on the rotation. Kicks the server into gear
    map "obj/obj_team1"
    --------------------------------------------------------------------

    Deleting set g_extgametype "" doesnt seem to make a difference. Still crashes. Hmmmm..I may go back to your original .scr editing suggestion but I do like this method better if any suggestions.

    Cheers and thanks
    Last edited by OhGaz; April 19th, 2015 at 11:46 PM.

  7. #7

    Default

    Just tested it and it works fine for me. Unlikely, but do you have any other mods running that may be getting in the way?

    This is what my config looks like when I paste your part in:

    Code:
    // Server Name
    sv_hostname "[SG] :: Test Server" 
    
    // Clients
    seta sv_maxclients "32"
    
    // RCON Capability
    rconpassword "xxxxx"
    
    // Team Damage
    set g_teamdamage 0
    
    // Time Limit
    timelimit 20
    
    // Frag Limit
    fraglimit 5
    
    // Round Reset Time
    roundlimit 5
    
    // Logs
    set developer 1
    seta g_logsync "1"
    set chat 1
    seta sv_chatter 1
    seta logfile 3
    seta sv_chatter "1"
    seta g_log "qconsole.log"
    
    // Map Rotation List
    set g_extgametype_mohdm1 tdm
    set g_extgametype_mohdm2 tdm
    set g_extgametype_mohdm3 tdm
    set g_extgametype_mohdm4 tdm
    set g_extgametype_mohdm5 tdm
    set g_extgametype_mohdm6 tdm
    set g_extgametype_mohdm7 tdm
    set g_extgametype_obj_team1 obj
    set g_extgametype_obj_team2 obj
    set g_extgametype_obj_team3 obj
    set g_extgametype_obj_team4 obj
    set g_extgametype_parabot_obj_ste-mere-eglise
    set g_extgametype_obj_merville obj
    set g_extgametype_obj_stanalie obj
    set g_extgametype_obj_canal obj
    set g_extgametype_vsuk-abbeybeta obj
    set g_extgametype_bastogne obj
    set g_extgametype_parabot_bobobjaa01 obj
    set g_extgametype_parabot_bobobjaa02 obj
    set g_extgametype_ChocolateFactory obj
    set g_extgametype_The_Lost_Village obj
    set g_extgametype_bob_carentan obj
    set g_extgametype_navarone obj
    
    set map1 "obj/obj_team1"
    set map2 "dm/mohdm1"
    set map3 "obj/obj_team2"
    set map4 "dm/mohdm2"
    set map5 "dm/mohdm7"
    set map6 "obj/obj_team3"
    set map7 "dm/mohdm3"
    set map8 "dm/mohdm4"
    set map9 "obj/obj_team4"
    set map10 "dm/mohdm5"
    set map11 "dm/mohdm6"
    
    set sv_maplist "$map1 $map2 $map3 $map4 $map5 $map6 $map7 $map8 $map9 $map10 $map11"
    
    set g_gametype 4
    
    // Map
    map "obj/obj_team1"

  8. #8

    Default

    Thanks man. Ok. I'll check the mods.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •